<?php
require('config.php');

        $user_id=$_REQUEST['user_id'];
        $wb_order_id=$_REQUEST['wb_order_id'];
		$sql="select * from `".$oto."_users` where `userId`='".$user_id."' LIMIT 1";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$user_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		$data[0]['userMoney']=$user_info[0]['userMoney'];
		if($user_info[0]['payPwd']==NULL || $user_info[0]['payPwd']=="" || is_null($user_info[0]['payPwd']))
		{
			$data[0]['payPwd']=0;
		}
		else
		{
			$data[0]['payPwd']=1;
		}
		$sql="select * from `".$oto."_help_orders` where `id`='".$wb_order_id."' LIMIT 1";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$order[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(isset($order))
		{
			$data[0]['needPay']=$order[0]['money'];
		}
		else
		{
			$data[0]['needPay']=0;
		}
		//file_put_contents("tsxx.txt", "\r\n".111."\r\n", FILE_APPEND);
		echo json_encode($data);
?>